const express = require('express')
const router = express.Router()

const { getHotRestaurantData, getRestaurantData, getRestaurantDetailData } = require('../../controller/web/RestaurantController')

// 导入分页中间件
const paginationMiddleware = require('../../middleware/paginationMiddleware');

// 获取餐厅数据
router.get('/restaurant', paginationMiddleware, getRestaurantData)

// 获取热门餐厅数据
router.get('/restaurant/hot', getHotRestaurantData)

// 获取餐厅详情数据
router.get('/restaurant/detail/:id', getRestaurantDetailData)

module.exports = router